
/**
 * 员工表格筛选器
 */
export default {
    options: [
        {
            label: '姓名',
            value: 'realname',
            type: 'text',
            operator: 'like',
            selected: true,
            repeat: false, //是否允许重复添加该条件
            operators: [
                {label: '包含', value: 'like'},
                {label: '等于', value: '='}
            ]
        },
        {
            label: '手机号',
            value: 'mobile',
            type: 'text',
            operator: 'like',
            selected: false,
            operators: [
                {label: '包含', value: 'like'},
                {label: '等于', value: '='}
            ]
        },
        {
            label: '在职状态',
            value: 'status',
            type: 'select',
            operator: '=',
            selected: true,
            placeholder: '请选择类型',
            operators: [
                {label: '等于', value: '='}
            ],
            extend: {
                data: [
                    {label: "全部", value: ""},
                    {label: "在职", value: "1"},
                    {label: "离职", value: "0"}
                ]
            }
        },
        {
            label: '职位',
            value: 'status',
            type: 'select',
            operator: '=',
            selected: true,
            placeholder: '请选择类型',
            operators: [
                {label: '等于', value: '='}
            ],
            extend: {
                data: [
                    //TODO: 这里需要从后台获取职位列表
                    {label: "全部", value: ""},
                    {label: "xx1", value: "1"},
                    {label: "xx2", value: "0"}
                ]
            }
        },
        {
            label: '入职时间',
            value: 'in_time',
            type: 'daterange',
            operator: 'between',
            selected: true,
            operators: [
                {label: '范围', value: 'between'}
            ]
        },
        {
            label: '离职时间',
            value: 'out_time',
            type: 'daterange',
            operator: 'between',
            operators: [
                {label: '范围2', value: 'between'}
            ]
        }
    ]
}